home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / prog / masa / 25 / ncg_free.exe / NCG_Free / INSTALL.INF < prev    next >
INI File  |  1996-10-15  |  15KB  |  589 lines

  1. ;******************************************************************************
  2. ;* Norton CrashGUard 1.0 installation script - Freeware edition               *
  3. ;******************************************************************************
  4.  
  5. ; Script Switch Numbers
  6.  
  7. ;  SWITCH_IS_NT40                             01
  8. ;  SWITCH_IS_WIN95                            02
  9.  
  10. ;  SWITCH_PRODUCT_EXISTS                      08
  11.  
  12. ;  SWITCH_CUSTOM_INSTALL                      09
  13.  
  14. ;  SWITCH_RESTORE_DEFAULTS                    11
  15.  
  16. ;  SWITCH_PREVIOUS                            50
  17. ;  SWITCH_NEXT                                51
  18. ;  SWITCH_CANCEL                              52
  19.  
  20. ;  SWITCH_EXIT_CONTINUE                       96
  21. ;  SWITCH_EXIT_RESTART                        97
  22. ;  SWITCH_EXIT_REBOOT                         98
  23.  
  24. [InstallVersion]
  25. 4.0
  26.  
  27. [process]
  28. EnableForceWrite()
  29. EnableOverwrite()
  30. EnableWin95Shell()
  31. Enable256Advos()
  32. SaveRegistry(SaveRegGroup)
  33. SetActiveCopy(MainCopy, install.inf)
  34. Backup(CustDLLCopy)
  35. Backup(SettingsDLLCopy)
  36. ;Bitmaps(Bitmaps)
  37. DisableHelp()
  38. CallProc(InitCustomDLL)
  39. switch53=CallProcEx(bIsProductExpired)
  40. #if(switch53)
  41.    Exit()
  42. #endif
  43. #ifnot(switch02)
  44.    MessageBox(MB_IncorrectWinVer)
  45.    switch97=FALSE
  46.    Exit()
  47. #endif
  48.  
  49. CallProc(DelWinInit)
  50.  
  51. CallProc(CheckForExistingProduct)
  52.  
  53. CallProc(SetDefaultProductDirectory)
  54.  
  55. WizardPanel(WizWelcome, siwstngr.dll)
  56. WizardProcessPanel()
  57.  
  58. WizardPanel(WizLicense, siwstngr.dll)
  59. WizardProcessPanel()
  60.  
  61. SelectOption(LiveUpdate)
  62. SelectOption(RequiredFiles)
  63.  
  64. WizardPanel(WizSelectLocation, siwstngr.dll)
  65. WizardProcessPanel()
  66. CallProc(SetSymantecDirectory)
  67. CallProc(SetLiveUpdateDirectory)
  68.  
  69. WizardIncludePanel(WizKeepSettings)
  70. WizardPanel(WizKeepSettings, siwstngr.dll)
  71. #if(switch08)
  72.    WizardProcessPanel()
  73. #else
  74.    WizardExcludePanel(WizKeepSettings)
  75. #endif
  76.  
  77. WizardPanel(WizSetupReview, siwstngr.dll)
  78. WizardProcessPanel()
  79.  
  80. #ifnot(switch08)
  81.    switch11=TRUE
  82. #endif
  83.  
  84. #if(switch11)
  85.    CallProc(DeleteSettings)
  86. #endif
  87.  
  88. switch53=CallProcEx(CreateInstallDirs)
  89. #ifnot(switch53)
  90.    MessageBox(MB_UnableToCreateInstallDirs)
  91.    switch97=FALSE
  92.    goto(Exit)
  93. #endif
  94.  
  95. ;switch53=CallProcEx(bIsDiskOne)
  96. ;#ifnot(switch53)
  97. ;   Exit()
  98. ;#endif
  99.  
  100. switch53=CallProcEx(bInstallLiveUpdate)
  101. #ifnot(switch53)
  102.    DeselectOption(LiveUpdate)
  103. #endif
  104.  
  105. Copy()
  106.  
  107. CallProc(HourglassOn)
  108.  
  109. CallProc(RegisterSharedLocation)
  110. CallProc(RegisterSharedUsage)
  111. CallProc(RegisterSharedUsage_LiveUpdate)
  112. CallProc(RegisterProductInfo)
  113.  
  114. switch53=CallProcEx(bWinInetNewer)
  115. #if(switch53)
  116.    CallProc(InstallWinInet)
  117. #endif
  118.  
  119. CallProc(HourglassOff)
  120.  
  121. Groups(MainGroup)
  122.  
  123. WizardPanel(WizHowToReach, siwstngr.dll)
  124. WizardProcessPanel()
  125.  
  126. switch53=IsFileInUse()
  127. #if(switch53)
  128.    switch96=FALSE
  129.    switch97=TRUE
  130.    switch98=FALSE
  131. #else
  132.    switch96=TRUE
  133.    switch97=FALSE
  134.    switch98=FALSE
  135. #endif
  136.  
  137. ;  ONLINE REGISTRATION DIALOGS
  138. ResetTarget(SetTargetToTarget1)
  139. WizardPanel(WizRegisterNow, siwstngr.dll)
  140. WizardIncludePanel(WizRegisterPersonal)
  141. WizardIncludePanel(WizRegisterMarketing)
  142. WizardIncludePanel(WizRegisterDecide)
  143. WizardSetSkip(WizRegisterNow, WizFinish)
  144. WizardProcessPanel()
  145. WizardPanel(WizRegisterPersonal, siwstngr.dll)
  146. WizardSetSkip(WizRegisterPersonal, WizFinish)
  147. WizardProcessPanel()
  148. WizardPanel(WizRegisterMarketing, siwstngr.dll)
  149. WizardSetSkip(WizRegisterMarketing, WizFinish)
  150. WizardProcessPanel()
  151. WizardPanel(WizRegisterDecide, siwstngr.dll)
  152. WizardSetSkip(WizRegisterDecide, WizFinish)
  153. WizardProcessPanel()
  154.  
  155. WizardPanel(WizFinish, siwstngr.dll)
  156. Delete(DelWintDist)
  157.  
  158. WizardExcludePanel(WizRegisterPersonal)
  159. WizardExcludePanel(WizRegisterMarketing)
  160. WizardExcludePanel(WizRegisterDecide)
  161. WizardProcessPanel()
  162.  
  163. :Exit
  164. Delete(DelPipeline)
  165. #if(switch97)
  166.    switch53=CallProcEx(bRestartWindows)
  167.    #if(switch53)
  168.       ExitRestart()
  169.    #else
  170.       Exit()
  171.    #endif
  172. #endif
  173. CallProc(LaunchCrashGuard)
  174. Exit()
  175.  
  176. ;###########################################################################
  177. ;###########################################################################
  178.  
  179. ;***************************************************************************
  180. ;* SubProc Executed When Install Takes Over As Shell
  181. ;***************************************************************************
  182.  
  183. [subproc]
  184. Backup(CustDLLCopy)            ; Copy custom dll to windows dir
  185. Backup(SettingsDLLCopy)
  186. Return()
  187.  
  188.  
  189. ;***************************************************************************
  190. ;* Dialog Info                                                             *
  191. ;***************************************************************************
  192.  
  193. [MainCopy:CopyDialog]
  194. caption = "Copying files..."
  195. posx = -1
  196. posy = -20
  197.  
  198. [MainCopy:Primary]
  199. caption = "Select Components"
  200. button1 = "Select..."
  201. button2 = "Select..."
  202. button3 = "Select..."
  203. button4 = "Select..."
  204. button5 = "Select..."
  205. text = PrimaryText
  206.  
  207. [PrimaryText]
  208. "Please select the items you want to install.  If a selection"
  209. "has a button to the right, you can select individual files or"
  210. "components."
  211.  
  212. ;***************************************************************************
  213. ;* Message Text                                                            *
  214. ;***************************************************************************
  215.  
  216. [cancel]
  217. caption = "Exit Install?"
  218. text    = "Are you sure that you want to exit?"
  219.  
  220. [cancelshell]
  221. caption = "Exit Install?"
  222. "You have chosen to cancel the Install"
  223. "program. In order to reset the Windows"
  224. "environment, Install will also restart"
  225. "Windows. Are you sure you want to exit?"
  226.  
  227. [FileCopy]
  228. copycaption             = "Installing Files"
  229. errorcaption    = "Error Copying Files"
  230. insertcaption   = "Insert Diskette"
  231. Message                 = MessageText
  232.  
  233. [NotImplemented]
  234. caption = "Feature Not Implemented"
  235. "This feature has not yet been implemented."
  236.  
  237. [MB_IncorrectWinVer]
  238. caption = "Incorrect Windows Version"
  239. "Norton CrashGuard (TM) 1.0 requires Windows 95.  Setup is unable to proceed."
  240.  
  241. [MB_UnableToCreateInstallDirs]
  242. caption="Fatal Error"
  243. "Cannot create target directories.  Setup is unable to proceed."
  244.  
  245. ;***************************************************************************
  246. ;* File Exist verifications                                                *
  247. ;***************************************************************************
  248.  
  249. ;***************************************************************************
  250. ;* Delete Files                                                            *
  251. ;***************************************************************************
  252.  
  253. [DelWintDist]
  254. wintdist.exe,  TARGET1
  255.  
  256. [DelPipeline]
  257. pipeline.ini,  TARGET1
  258. mailbusi.ctl,  TARGET1
  259. cramapi.dll,   TARGET1
  260. siwpipl.exe,   TARGET1
  261. pipeline.dll,  TARGET1
  262. pipedlg.dat,   TARGET1
  263. modem.id,      TARGET1
  264. $flecomp.tmp,  TARGET1
  265.  
  266. ;***************************************************************************
  267. ;* External function calls (DLL)                                           *
  268. ;***************************************************************************
  269.  
  270. [InitCustomDLL]
  271. dll = siwstngr.dll
  272. function = InitCustomDLL
  273.  
  274. [ExitHookProc]
  275. dll = siwstngr.dll
  276. function = ReleaseCustomDLL
  277.  
  278. [TestFunction]
  279. dll=siwstngr.dll
  280. function=TestFunction
  281.  
  282. [CheckForExistingProduct]
  283. dll=siwstngr.dll
  284. function=CheckForExistingProduct
  285.  
  286. [SetDefaultProductDirectory]
  287. dll=siwstngr.dll
  288. function=SetDefaultProductDirectory
  289.  
  290. [SetSymantecDirectory]
  291. dll=siwstngr.dll
  292. function=SetSymantecDirectory
  293.  
  294. [CreateInstallDirs]
  295. dll=siwstngr.dll
  296. function=CreateInstallDirs
  297.  
  298. [RegisterSharedLocation]
  299. dll=siwstngr.dll
  300. function=RegisterSharedLocation
  301.  
  302. [RegisterSharedUsage]
  303. dll=siwstngr.dll
  304. function=RegisterSharedUsage
  305.  
  306. [RegisterProductInfo]
  307. dll=siwstngr.dll
  308. function=RegisterProductInfo
  309.  
  310. [KillRunningTasks]
  311. dll=siwstngr.dll
  312. function=KillRunningTasks
  313.  
  314. [HourglassOn]
  315. dll=siwstngr.dll
  316. function=HourglassOn
  317.  
  318. [HourglassOff]
  319. dll=siwstngr.dll
  320. function=HourglassOff
  321.  
  322. [SetUninstallFlags]
  323. dll=siwstngr.dll
  324. function=SetUninstallFlags
  325.  
  326. [RemoveUninstallFlags]
  327. dll=siwstngr.dll
  328. function=RemoveUninstallFlags
  329.  
  330. [DeleteSettings]
  331. dll=siwstngr.dll
  332. function=DeleteSettings
  333.  
  334. [bIsDiskOne]
  335. dll=siwstngr.dll
  336. function=bIsDiskOne
  337.  
  338. [InstallWinInet]
  339. dll=siwstngr.dll
  340. function=InstallWinInet
  341.  
  342. [RefreshDesktop]
  343. dll=siwstngr.dll
  344. function=RefreshDesktop
  345.  
  346. [bRestartWindows]
  347. dll=siwstngr.dll
  348. function=bRestartWindows
  349.  
  350. [bRebootSystem]
  351. dll=siwstngr.dll
  352. function=bRebootSystem
  353.  
  354. [SetLiveUpdateDirectory]
  355. dll=siwstngr.dll
  356. function=SetLiveUpdateDirectory
  357.  
  358. [RegisterSharedUsage_LiveUpdate]
  359. dll=siwstngr.dll
  360. function=RegisterSharedUsage_LiveUpdate
  361.  
  362. [DelWinInit]
  363. dll=siwstngr.dll
  364. function=DelWinInit
  365.  
  366. [bInstallLiveUpdate]
  367. dll=siwstngr.dll
  368. function=bInstallLiveUpdate
  369.  
  370. [AddLiveUpdateToProgramGroup]
  371. dll=siwstngr.dll
  372. function=AddLiveUpdateToProgramGroup
  373.  
  374. [bWinInetNewer]
  375. dll=siwstngr.dll
  376. function=bWinInetNewer
  377.  
  378. [bIsSufficientDiskSpace]
  379. dll=siwstngr.dll
  380. function=bIsSufficientDiskSpace
  381.  
  382. [bIsProductExpired]
  383. dll=siwstngr.dll
  384. function=bIsProductExpired
  385.  
  386. [LaunchCrashGuard]
  387. dll=siwstngr.dll
  388. function=LaunchCrashGuard
  389.  
  390. ;***************************************************************************
  391. ;* Misc install functions                                                  *
  392. ;***************************************************************************
  393.  
  394. [Bitmaps]
  395. color = %s\symantec.rle, -1, -1
  396.  
  397. [MainCopy:Advo]
  398. posx = 20
  399. posy = 20
  400. location = siwstngr.dll
  401. count = 1
  402. BitmapsOnly=1
  403.  
  404. [SaveRegGroup]
  405. WINDOWS, system.ncg, user.ncg
  406.  
  407. ;***************************************************************************
  408. ;* Set Directories                                                         *
  409. ;***************************************************************************
  410.  
  411. [CrDirTarget]
  412. %s, TARGET1
  413.  
  414. [SetTargetToTarget1]
  415. reset = TARGET
  416. location = %s, TARGET1
  417.  
  418.  
  419. ;***************************************************************************
  420. ;* File backup                                                             *
  421. ;***************************************************************************
  422.  
  423. [CustDLLCopy]
  424. siwstngr.dll, siwstngr.dll, SOURCE, TEMPDIR
  425.  
  426. [SettingsDLLCopy]
  427. cgsetngs.dll, cgsetngs.dll, SOURCE, TEMPDIR
  428.  
  429. ;***************************************************************************
  430. ;* Autoexec Mods                                                           *
  431. ;***************************************************************************
  432.  
  433. ;***************************************************************************
  434. ;* SetShell section                                                        *
  435. ;***************************************************************************
  436.  
  437. [SetShell]
  438. WinIniName = win.ini
  439. SystemIniName = system.ini
  440. Message = MessageBox.SetShellMessage
  441. SysSectionName = boot
  442. WinSectionName = windows
  443. shell = %s\setup.exe
  444. load =
  445. run =
  446. SetShellIfLoaded=
  447. Backup = Backup.SetShellSave
  448. Restore = Backup.SetShellRestore
  449. Active=no
  450. IfActiveList=LoadedList
  451. SubProcess=SubProc
  452.  
  453. [SetShellSave]
  454. win.ini, win.siw, WINDOWS, WINDOWS
  455. system.ini, system.siw, WINDOWS, WINDOWS
  456.  
  457. [SetShellRestore]
  458. system.siw, system.ini, WINDOWS, WINDOWS
  459. win.siw, win.ini, WINDOWS, WINDOWS
  460.  
  461. [_LoadedList]
  462.  
  463. [SetShellMessage]
  464. caption  =  "Norton CrashGuard (TM) Setup"
  465. "Welcome to Norton CrashGuard (TM) Setup.  Please select OK to allow Setup to restart Windows and continue the installation.  Press Cancel to exit Setup."
  466.  
  467.  
  468. ;***************************************************************************
  469. ;* Groups                                                                  *
  470. ;***************************************************************************
  471.  
  472. [MainGroup]
  473. "Norton CrashGuard", ncg.grp
  474.  
  475. [Norton CrashGuard]
  476. "Norton CrashGuard (TM)",                cgmain.exe,    RequiredFiles,,TARGET1,,,,TARGET1
  477. "Norton CrashGuard (TM) Release Notes",  readme.txt,    RequiredFiles,,TARGET1,,,,TARGET1
  478.  
  479. ;***************************************************************************
  480. ;* Copy                                                                    *
  481. ;***************************************************************************
  482.  
  483. [MainCopy]
  484. ;SelectionType.ComponentName,    "SelectionDlgText",               Size,    Required?,<Files>?,ShowItem?
  485.  
  486. CopyMain.RequiredFiles,          "Required Files - %ldK",            0,       Y,          N,          Y
  487. CopyMain.LiveUpdate,             "Symantec LiveUpdate - %ldK",       0,       N,          N,          N
  488.  
  489. ;***************************************************************************
  490. ;* Wizard Panels                                                           *
  491. ;***************************************************************************
  492.  
  493. [WizWelcome]
  494. Caption="Norton CrashGuard (TM) Setup"
  495. Title="Welcome"
  496. DlgProc=_WelcomeDlgProc@16
  497. ResourceID=501
  498. Bitmap16=900
  499. PanelDataProc=_WelcomeDataProc@0
  500. PanelFlags=First
  501.  
  502. [WizLicense]
  503. Caption="Norton CrashGuard (TM) Setup"
  504. DlgProc=_LicenseDlgProc@16
  505. PanelDataProc=_LicenseDataProc@0
  506. ResourceId=502
  507.  
  508. [WizSelectLocation]
  509. Caption="Norton CrashGuard (TM) Setup"
  510. Title="Program Location"
  511. DlgProc=SIW_ProductDlgProc
  512. ResourceId=1000
  513. Bitmap16=903
  514. PanelDataProc=DefaultDataProc
  515.  
  516. [WizSetupReview]
  517. Caption="Norton CrashGuard (TM) Setup"
  518. Title="Setup Review"
  519. DlgProc=SIW_ProductDlgProc
  520. ResourceId=1001
  521. Bitmap16=900
  522. PanelDataProc=DefaultDataProc
  523.  
  524. [WizHowToReach]
  525. Caption="Norton CrashGuard (TM) Setup"
  526. Title="How to Reach Us"
  527. DlgProc=_ReachDlgProc@16
  528. ResourceId=513
  529. Bitmap16=213
  530. PanelFlags=First
  531.  
  532. [WizFinish]
  533. Caption="Norton CrashGuard (TM) Setup"
  534. Title="Installation Complete"
  535. DlgProc=SIW_ProductDlgProc
  536. ResourceId=1003
  537. ;Bitmap16=906
  538. Bitmap16=900
  539. PanelDataProc=DefaultDataProc
  540. PanelFlags=last+finish
  541.  
  542. [WizKeepSettings]
  543. Caption="Norton CrashGuard (TM) Setup"
  544. Title="Keep Current Settings?"
  545. DlgProc=SIW_ProductDlgProc
  546. ResourceId=1010
  547. Bitmap16=900
  548. PanelDataProc=DefaultDataProc
  549.  
  550. [WizRegisterNow]
  551. Caption="Norton CrashGuard (TM) Setup"
  552. Title="Register Now"
  553. DlgProc=_RegNowDlgProc@16
  554. PanelDataProc=_RegNowDataProc@0
  555. ResourceId=504
  556. Bitmap16=204
  557. PanelFlags=Skip
  558.  
  559. [WizRegisterPersonal]
  560. Caption="Norton CrashGuard (TM) Setup"
  561. DlgProc=_UsaRegDlgProc@16
  562. PanelDataProc=_UsaRegDataProc@0
  563. ResourceId=505
  564. PanelFlags=Skip
  565.  
  566. [WizRegisterMarketing]
  567. Caption="Norton CrashGuard (TM) Setup"
  568. DlgProc=_MarketingDlgProc@16
  569. PanelDataProc=_MarketingDataProc@0
  570. ResourceId=506
  571. PanelFlags=Skip
  572.  
  573. [WizRegisterDecide]
  574. Caption="Norton CrashGuard (TM) Setup"
  575. Title="Send Us Your Form"
  576. DlgProc=_SendRegDlgProc@16
  577. PanelDataProc=_SendRegDataProc@0
  578. ResourceId=514
  579. Bitmap16=214
  580. PanelFlags=Skip
  581.  
  582. [WizNoDiskSpace]
  583. Caption="Norton CrashGuard (TM) Setup"
  584. Title="Insufficient Disk Space"
  585. DlgProc=SIW_ProductDlgProc
  586. ResourceId=1011
  587. Bitmap16=900
  588. PanelDataProc=DefaultDataProc
  589.